package com.jiyun.feign;

import com.jiyun.entity.day08.TrainingDTO;
import com.jiyun.vo.ResultResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @Title: TrainingFeign
 * @Author 杜瑞
 * @Date 2023/8/31 16:42
 */
@FeignClient("day13-training")
public interface TrainingFeign {
    @PostMapping("/training/findAll1")
    public ResultResponse findAll1(@RequestBody TrainingDTO trainingDTO);
    @RequestMapping("/training/findByPx")
    public ResultResponse findByPx(@RequestParam("pxId") Integer pxId);
    @RequestMapping("/training/findByKc")
    public ResultResponse findByKc(@RequestParam("pxId")Integer pxId);
    @RequestMapping("/training/findBySj")
    public ResultResponse findBySj(@RequestParam("pxId")Integer pxId);
}
